package com.weishuang.account.utils;

import org.springframework.util.DigestUtils;

public class PasswordUtil {

    //TODO 改为从nacos里拿
    private static String passwordSalt = "asid65asdk21@asd";


    public static String generatePassword(String str) {
        return DigestUtils.md5DigestAsHex((str + passwordSalt).getBytes());
    }
}
